package service.factory;

import service.AdminManager;
import service.MerchantManager;
import service.impl.AdminManagerImpl;
import service.impl.MerchantManagerImpl;


//所有manager的工厂方法都在这里
public class ManagerFactory {
	
	private static AdminManager adminManager;
	private static MerchantManager merchantManager;
	
	public static AdminManager getUserManagerInstance(){
		if (adminManager==null) {
			adminManager = new AdminManagerImpl();
		}
		return adminManager;
	}
	
	public static MerchantManager getMerchantManagerInstance(){
		if (merchantManager==null) {
			merchantManager = new MerchantManagerImpl();
		}
		return merchantManager;
	}
	

	

}
